package gameobjects;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import main.GameObject;
import main.Map.State;

public class Cake extends GameObject {

	static BufferedImage texture;
	static{
		try{
			texture = ImageIO.read(new File("res/cake.png"));
		}
		catch(IOException e){
			
		}
	}
	public Cake(Point place) {
		super(place);
		type = State.CAKE;
	}
	
	@Override
	public void draw(Graphics2D g2d, int dX, int dY){
		super.draw(g2d, dX, dY);
		g2d.drawImage(texture, coords.x - dX, coords.y - dY, null);
	}

}
